#ifndef HMM_PARAMS_H

#define HMM_PARAMS_H     1

#define HMM_MOTE_NUM   1
#define HMM_MOTE_NAME   "Waist"

#define HMM_NEG_INF   -30000
#define HMM_NBINS   10
#define HMM_NFEATURES   12
#define HMM_NSTATES   9

const int16_t HMM_OFFSETS   [HMM_NFEATURES] = {1651, 261, 191, 1, 517, 196, 134, 1, 652, 302, 165, 1};
const int16_t HMM_INCREMENT   [HMM_NFEATURES] = {128, 52, 38, 1, 82, 37, 28, 1, 147, 61, 33, 1};

const int16_t HMM_LABELS   [HMM_NSTATES] = {2, -1, -2, -3, -4, 1, -1, -2, -3};

const int16_t tbl_trns[HMM_NSTATES][2] = {-30000, -200, -308, -270, -179, -30000, -201, -198, -190, 
                                        0, -1092, -817, -900, -1163, 0, -1089, -1097, -1125};

const int16_t prob_obs[HMM_NSTATES][HMM_NBINS][HMM_NFEATURES] = {\
-3522, -4042, -4042, -1659, -4042, -4042, -4042, -2119, -4042, -4042, -4042, -3218, \
-2244, -4042, -4042, -119, -4042, -4042, -4042, -143, -2063, -4042, -4042, -72, \
-824, -1875, -4042, -4042, -3522, -4042, -3218, -1875, -737, -4042, -3218, -2315, \
-959, -702, -2011, -4042, -1570, -1963, -1517, -4042, -566, -1239, -1659, -4042, \
-972, -824, -867, -4042, -1239, -702, -604, -4042, -2119, -728, -651, -4042, \
-2583, -1796, -794, -4042, -719, -728, -867, -4042, -3522, -737, -693, -4042, \
-3522, -2315, -1093, -4042, -1065, -1570, -2063, -4042, -4042, -2698, -2583, -4042, \
-4042, -2583, -3218, -4042, -2698, -3522, -3522, -4042, -4042, -4042, -3522, -4042, \
-4042, -3522, -4042, -4042, -3522, -4042, -4042, -4042, -4042, -4042, -4042, -4042, \
-4042, -4042, -4042, -4042, -4042, -4042, -4042, -4042, -4042, -4042, -4042, -4042, \
\
-4587, -5107, -5107, -1242, -5107, -5107, -5107, -1988, -3380, -5107, -5107, -2940, \
-1784, -4283, -5107, -169, -4587, -5107, -5107, -87, -1354, -5107, -5107, -72, \
-515, -2532, -5107, -4587, -2824, -3900, -3380, -2608, -662, -3076, -3309, -2075, \
-879, -1278, -3076, -5107, -1549, -1900, -1840, -5107, -800, -802, -1517, -5107, \
-1932, -1072, -1758, -5107, -1016, -720, -525, -5107, -2204, -593, -744, -5107, \
-3380, -1221, -635, -5107, -736, -699, -779, -5107, -4283, -1306, -712, -5107, \
-5107, -1055, -650, -5107, -1301, -1669, -2379, -5107, -3763, -3900, -1821, -5107, \
-5107, -1811, -2582, -5107, -2582, -2756, -4068, -5107, -5107, -5107, -4068, -5107, \
-5107, -3763, -5107, -5107, -4283, -5107, -4587, -5107, -5107, -5107, -5107, -5107, \
-5107, -4587, -5107, -5107, -5107, -5107, -5107, -5107, -5107, -5107, -5107, -5107, \
\
-4847, -4847, -4847, -4847, -4847, -4847, -4847, -1393, -2180, -4847, -4847, -907, \
-4847, -4847, -4847, -16, -4847, -4847, -4847, -141, -602, -4847, -4847, -280, \
-4847, -4847, -4023, -3640, -2722, -4847, -3640, -4327, -586, -4847, -4847, -4847, \
-1480, -4847, -1608, -4847, -1619, -4023, -2867, -4847, -2638, -2867, -4847, -4847, \
-618, -3640, -370, -4847, -840, -1589, -1219, -4847, -4847, -1069, -3048, -4847, \
-727, -1560, -1022, -4847, -752, -733, -535, -4847, -4847, -798, -829, -4847, \
-2600, -473, -4327, -4847, -1447, -873, -1022, -4847, -4847, -752, -589, -4847, \
-4327, -900, -4847, -4847, -3287, -1506, -2923, -4847, -4847, -3048, -1314, -4847, \
-4847, -2767, -4847, -4847, -4847, -2347, -4847, -4847, -4847, -4847, -3199, -4847, \
-4847, -4847, -4847, -4847, -4847, -4327, -4847, -4847, -4847, -4847, -4847, -4847, \
\
-4935, -4935, -4935, -4935, -4935, -4935, -4935, -4935, -4935, -4935, -4935, -4935, \
-4935, -4935, -3895, -156, -4935, -4935, -3476, -129, -3728, -4935, -4935, -10, \
-4935, -4111, -3476, -1302, -4935, -4935, -1749, -1444, -1504, -4935, -4111, -4935, \
-4935, -2463, -1187, -4935, -4415, -2491, -690, -4935, -880, -4935, -1816, -4935, \
-3287, -650, -289, -4935, -3476, -1416, -655, -4935, -921, -4935, -759, -4935, \
-552, -588, -1793, -4935, -1544, -928, -2001, -4935, -1061, -3895, -767, -4935, \
-565, -1986, -4935, -4935, -655, -866, -4935, -4935, -3728, -590, -1370, -4935, \
-2688, -4415, -4935, -4935, -756, -1363, -4935, -4935, -4935, -554, -3287, -4935, \
-4415, -4415, -4935, -4935, -2032, -2463, -4935, -4935, -4935, -2247, -3895, -4935, \
-4935, -4935, -4935, -4935, -3895, -4415, -4935, -4935, -4935, -4111, -4935, -4935, \
\
-4675, -2528, -5195, -2052, -5195, -5195, -3735, -3635, -4371, -3164, -2811, -3851, \
-3027, -2357, -3468, -91, -4371, -4371, -3271, -54, -4155, -2723, -2052, -158, \
-1872, -1748, -2076, -2374, -3468, -2644, -2428, -2189, -3164, -1837, -1334, -1300, \
-1756, -1325, -1527, -5195, -2911, -1457, -1669, -5195, -2696, -1656, -947, -5195, \
-1361, -1007, -1113, -5195, -1908, -772, -752, -5195, -2064, -1199, -950, -5195, \
-630, -1097, -887, -5195, -1066, -947, -827, -5195, -1100, -990, -1676, -5195, \
-1361, -1643, -1334, -5195, -778, -1550, -1726, -5195, -618, -1202, -2307, -5195, \
-2487, -2467, -2189, -5195, -1195, -2487, -2781, -5195, -1300, -1987, -2986, -5195, \
-3851, -3396, -2696, -5195, -1937, -3396, -3635, -5195, -2696, -2986, -4155, -5195, \
-5195, -5195, -3331, -5195, -3331, -3547, -5195, -5195, -3271, -4675, -4675, -5195, \
\
-3553, -2729, -4073, -1905, -3249, -3249, -2865, -3249, -3033, -2865, -2729, -4073, \
-2093, -2729, -3553, -153, -3249, -2865, -2425, -129, -2865, -1905, -2209, -110, \
-1287, -1993, -2274, -1948, -2729, -2093, -1826, -1629, -2041, -1385, -1993, -1721, \
-1629, -1287, -1497, -4073, -2149, -1169, -1234, -4073, -1754, -758, -1014, -4073, \
-1344, -1218, -1081, -4073, -1789, -977, -741, -4073, -1473, -1095, -1124, -4073, \
-1344, -1287, -1067, -4073, -1169, -1138, -1234, -4073, -1522, -1905, -1325, -4073, \
-1234, -1252, -1218, -4073, -1002, -1658, -1993, -4073, -942, -2613, -1629, -4073, \
-1826, -1689, -2041, -4073, -1473, -2346, -3553, -4073, -1406, -2865, -2093, -4073, \
-3033, -2865, -2346, -4073, -1547, -2425, -3553, -4073, -1993, -3553, -3033, -4073, \
-4073, -4073, -3033, -4073, -2149, -3553, -4073, -4073, -3033, -4073, -4073, -4073, \
\
-3272, -4616, -3272, -1667, -2889, -3488, -3792, -1514, -3488, -2927, -4312, -1840, \
-2491, -2927, -2560, -187, -2968, -2560, -3105, -149, -2281, -2248, -3272, -91, \
-1682, -1631, -2103, -1697, -1813, -1744, -2281, -2428, -1241, -1297, -2332, -2927, \
-1315, -1181, -1262, -5136, -1373, -937, -1348, -5136, -1041, -826, -1631, -5136, \
-1208, -1373, -1136, -5136, -1258, -836, -962, -5136, -1208, -1136, -1451, -5136, \
-1147, -1373, -1140, -5136, -1306, -1514, -992, -5136, -1457, -1577, -855, -5136, \
-1339, -1306, -1358, -5136, -1408, -2217, -1527, -5136, -1859, -2172, -1118, -5136, \
-1928, -1769, -1888, -5136, -1667, -2428, -2298, -5136, -2217, -3056, -1769, -5136, \
-3488, -2281, -2889, -5136, -2117, -3272, -2637, -5136, -3011, -4096, -2637, -5136, \
-5136, -3011, -4312, -5136, -2722, -3676, -3272, -5136, -4096, -5136, -3337, -5136, \
\
-5144, -5144, -5144, -3280, -5144, -5144, -5144, -1830, -5144, -5144, -5144, -2396, \
-5144, -4624, -5144, -41, -4624, -4624, -5144, -76, -5144, -5144, -4624, -49, \
-5144, -3417, -5144, -2568, -3684, -3496, -3113, -5144, -1713, -5144, -5144, -3164, \
-3684, -2195, -3019, -5144, -1301, -3280, -2152, -5144, -170, -3164, -2825, -5144, \
-197, -904, -654, -5144, -492, -1886, -671, -5144, -1786, -431, -495, -5144, \
-1155, -390, -579, -5144, -934, -596, -650, -5144, -5144, -669, -770, -5144, \
-4624, -2544, -1812, -5144, -5144, -748, -1979, -5144, -5144, -3937, -1906, -5144, \
-5144, -4624, -3800, -5144, -4624, -2073, -2897, -5144, -5144, -5144, -3113, -5144, \
-5144, -5144, -5144, -5144, -5144, -3584, -4624, -5144, -5144, -5144, -5144, -5144, \
-5144, -5144, -5144, -5144, -5144, -5144, -5144, -5144, -5144, -5144, -5144, -5144, \
\
-4652, -5172, -5172, -2646, -5172, -5172, -5172, -2925, -3964, -5172, -5172, -2820, \
-3248, -4652, -5172, -72, -5172, -5172, -4652, -110, -2788, -5172, -5172, -65, \
-1600, -2113, -5172, -2180, -4652, -4652, -3047, -1667, -894, -4652, -3964, -2223, \
-1315, -964, -1703, -5172, -2317, -2284, -1165, -5172, -395, -1876, -1822, -5172, \
-450, -586, -386, -5172, -1384, -1021, -456, -5172, -2007, -477, -804, -5172, \
-1504, -1404, -1168, -5172, -551, -565, -1236, -5172, -4348, -767, -541, -5172, \
-3828, -2549, -1894, -5172, -975, -1179, -2757, -5172, -5172, -3004, -2007, -5172, \
-5172, -3248, -4348, -5172, -2527, -3445, -4348, -5172, -5172, -4132, -3964, -5172, \
-5172, -5172, -5172, -5172, -4132, -4652, -5172, -5172, -5172, -5172, -5172, -5172, \
-5172, -5172, -5172, -5172, -5172, -5172, -5172, -5172, -5172, -5172, -5172, -5172

};

#endif
